package com.wuyou.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yz
 * @since 2022-09-30
 */
@TableName("tb_contract")
public class TbContract implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "contract_id", type = IdType.AUTO)
    private Long contractId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 房屋id
     */
    private Long houseId;

    /**
     * 房东id
     */
    private Long hostId;

    /**
     * 租客id
     */
    private Long userId;

    /**
     * 租金
     */
    private BigDecimal rent;

    /**
     * 付款方式
     */
    private Integer payStatus;

    /**
     * 付款时间
     */
    private Date payTime;

    /**
     * 签约日期
     */
    private Date startTime;

    /**
     * 到期日期
     */
    private Date endTime;

    /**
     * 附件地址(主)
     */
    private String fileUrl;

    /**
     * 备用字段1
     */
    private String spare1;

    /**
     * 备用字段2
     */
    private String spare2;

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Long getHouseId() {
        return houseId;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }
    public Long getHostId() {
        return hostId;
    }

    public void setHostId(Long hostId) {
        this.hostId = hostId;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public BigDecimal getRent() {
        return rent;
    }

    public void setRent(BigDecimal rent) {
        this.rent = rent;
    }
    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }
    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
    public String getSpare1() {
        return spare1;
    }

    public void setSpare1(String spare1) {
        this.spare1 = spare1;
    }
    public String getSpare2() {
        return spare2;
    }

    public void setSpare2(String spare2) {
        this.spare2 = spare2;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "TbContract{" +
            "contractId=" + contractId +
            ", status=" + status +
            ", houseId=" + houseId +
            ", hostId=" + hostId +
            ", userId=" + userId +
            ", rent=" + rent +
            ", payStatus=" + payStatus +
            ", payTime=" + payTime +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", fileUrl=" + fileUrl +
            ", spare1=" + spare1 +
            ", spare2=" + spare2 +
        "}";
    }
}
